boolean have(item it, int amount) {
  return available_amount(it) >= amount;
}

boolean have(item it) {
  return have(it, 1);
}

if (!have($item[deep dish of legend])) {
  cli_execute("make 1 deep dish of legend");
}
if (!have($item[calzone of legend])) {
  cli_execute("make 1 calzone of legend");
}
if (!have($item[pizza of legend])) {
  cli_execute("make 1 pizza of legend");
}
if (!have($item[borrowed time])) {
  cli_execute("buy 1 borrowed time @ 50000");
}
if (!have($item[non-Euclidean angle])) {
  cli_execute("buy 1 non-Euclidean angle @ 50000");
}

print("You have " + to_string(available_amount($item[deep dish of legend])) + " deep dish of legend");
print("You have " + to_string(available_amount($item[calzone of legend])) + " calzone of legend");
print("You have " + to_string(available_amount($item[pizza of legend])) + " pizza of legend");
print("You have " + to_string(available_amount($item[borrowed time])) + " borrowed time");
print("You have " + to_string(available_amount($item[non-Euclidean angle])) + " non-Euclidean angle");

